<?php

namespace app\common\model\Business;

use think\Model;

// 回访记录表
class Visit extends Model
{
  protected $name = "business_visit";

  protected $autoWriteTimestamp = true;

  protected $createTime = "createtime";

  protected $updateTime = false;

  public function admin()
  {
    return $this->belongsTo('app\admin\model\Admin', 'adminid', 'id', [], 'LEFT')->setEagerlyType(0);
  }

  public function business()
  {
    return $this->belongsTo('app\common\model\Business\Business', 'busid', 'id', [], 'LEFT')->setEagerlyType(0);
  }
}
